import { Inject } from '@midwayjs/core';
import { CoolController, BaseController } from '@cool-midway/core';
import { CustomerTagEntity } from '../../entity/tag';
import { CustomerTagService } from '../../service/tag';

/**
 * 客户标签
 */
@CoolController({
  api: ['add', 'delete', 'update', 'info', 'list', 'page'],
  entity: CustomerTagEntity,
  service: CustomerTagService,
  pageQueryOp: {
    keyWordLikeFields: ['a.name'],
  },
})
export class AdminCustomerTagController extends BaseController {
  @Inject()
  customerTagService: CustomerTagService;
}
